<nav aria-label="Pages"{{ paginator.attrs }}>
    <ul{{ paginator.container.attrs }}>
        {% if show_first %}
            <li{{ paginator.item.attrs }}>
                <a href="?{{ extra|escape }}{{ paginator.iommi_path }}=1" aria-label="First Page"{{ paginator.link.attrs }}>&laquo;</a>
            </li>
        {% endif %}

        {% if has_previous %}
            <li{{ paginator.item.attrs }}>
                <a href="?{{ extra|escape }}{{ paginator.iommi_path }}={{ previous|stringformat:'s' }}" aria-label="Previous Page"{{ paginator.link.attrs }}>&lt;</a>
            </li>
        {% endif %}

        {% for num in page_numbers %}
            <li{% if num == page %}{{ paginator.active_item.attrs }}{% else %}{{ paginator.item.attrs }}{% endif %}>
                <a href="?{{ extra|escape }}{{ paginator.iommi_path }}={{ num|stringformat:'s' }}" aria-label="Page {{ num }}"{{ paginator.link.attrs }}>{{ num }}</a>
            </li>
        {% endfor %}

        {% if has_next %}
            <li{{ paginator.item.attrs }}>
                <a href="?{{ extra|escape }}{{ paginator.iommi_path }}={{ next|stringformat:'s' }}" aria-label="Next Page"{{ paginator.link.attrs }}>&gt;</a>
            </li>
        {% endif %}

        {% if show_last %}
            <li{{ paginator.item.attrs }}>
                <a href="?{{ extra|escape }}{{ paginator.iommi_path }}={{ pages|stringformat:'s' }}" aria-label="Last Page"{{ paginator.link.attrs }}>&raquo;</a>
            </li>
        {% endif %}
    </ul>
</nav>

